CXX = g++
CXXFLAGS = -Wall -std=c++11 -g  -pthread

SRC = sample.cpp lock_free_queue.cpp
OBJ = $(SRC:.cpp=.o)
EXEC = objects
DIR = ./objs/

all: $(EXEC)

$(EXEC): $(OBJ)
	$(CXX) -o $@ $(OBJ) -pthread
	./$(EXEC)
	mv $(EXEC) $(DIR)

clean:
	rm -rf $(OBJ) $(EXEC)